package org.csu.pm.entity;

import java.util.LinkedHashMap;
import java.util.Map;

public class URL {

    public Map<String,String> urlMap;

    public URL(){
        urlMap = new LinkedHashMap<>();
        //rooms
        urlMap.put("POST_rooms_add_url","http://localhost:8080/rooms?id={id}&location={location}&todo={todo}&status={status}");
        urlMap.put("DELETE_rooms_delete_url","http://localhost:8080/rooms/{id}");
        urlMap.put("PUT_rooms_update_url","http://localhost:8080/rooms?id={id}&location={location}&todo={todo}&status={status}");
        urlMap.put("GET_rooms_list_url","http://localhost:8080/rooms");
        urlMap.put("GET_rooms_url","http://localhost:8080/rooms/{id}");
        //user
        urlMap.put("POST_user_login_url","http://localhost:8080//user/login/{stuNo}/{password}");
        urlMap.put("POST_user_register_url","http://localhost:8080//user/register?stuNo={stuNo}&password={password}&realName={realName}&email={email}&phone={phone}");
        urlMap.put("DELETE_user_delete_url","http://localhost:8080//user/account/{stuNo}");
        urlMap.put("PUT_user_update_url","http://localhost:8080//user/phone?phone={phone}&captcha={captcha}&stuNo={stuNo}&password={password}&realName={realName}&email={email}&phone={phone}");
        urlMap.put("GET_user_checkCode_url","http://localhost:8080//captcha/{phone}");
        urlMap.put("GET_user_url","http://localhost:8080//user/account/{stuNo}");
        //book
        urlMap.put("POST_book_add_url","http://localhost:8080/book?id={id}&user_id={user_id}&room_id={room_id}&desc={desc}&begin={begin}&length={length}");
        urlMap.put("DELETE_book_delete_url","http://localhost:8080/book/book_info/{id}");
        urlMap.put("PUT_book_update_url","http://localhost:8080//book/book_info?id={id}&user_id={user_id}&room_id={room_id}&desc={desc}&begin={begin}&length={length}");
        urlMap.put("GET_book_info_by_id_url","http://localhost:8080/book/book_info/{id}");
        urlMap.put("GET_book_info_by_user_id_url","http://localhost:8080/book/book_info/{user_id}");
        urlMap.put("GET_book_info_by_room_id_url","http://localhost:8080/book/book_info/{room_id}");
        urlMap.put("GET_book_info_url","http://localhost:8080/book/book_infos");

    }
}
